package top.jybill.service;

import com.github.pagehelper.PageInfo;
import top.jybill.domain.MyPageInfo;
import top.jybill.domain.Order;

import java.util.List;

public interface IOrderService {

  /**
   * 查询订单且附带产品信息
   * @param pageInfo
   * @return
   */
  MyPageInfo findOrdersByPage(MyPageInfo pageInfo);

  /**
   * 根据id获取订单详细
   * @param id
   * @return
   */
  Order findOrderDetailById(String id);

  /**
   * 根据订单id删除订单
   * @param oid
   */
  void delOrder(String oid);
}
